package com.platform.common.core.domain.entity;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.platform.common.core.annotation.Excel;
import com.platform.common.core.web.domain.BaseEntity;

/**
 * 密钥方式管理对象 plat_secret
 *
 * @author platform
 * @date 2023-04-17
 */
public class PlatSecret extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long secretId;

    /** 名称 */
    @Excel(name = "名称")
    private String secretName;

    /** 编码 */
    @Excel(name = "编码")
    private String secretCode;


    /** 加密类型 0:对称加密 1：非对称加密 2：密钥散列 3：数字签名 4：国密sm1 5:国密sm2 6:国密 sm3 7: 国密sm4 8:其他 */
    @Excel(name = "加密类型 0:对称加密 1：非对称加密 2：密钥散列 3：数字签名 4：国密sm1 5:国密sm2 6:国密 sm3 7: 国密sm4 8:其他")
    private String type;

    /** 状态（1：正常 2：停止 ） */
    @Excel(name = "状态", readConverterExp = "1：正常,2：停止")
    private String status;

    public void setSecretId(Long secretId)
    {
        this.secretId = secretId;
    }

    public Long getSecretId()
    {
        return secretId;
    }
    public void setSecretName(String secretName)
    {
        this.secretName = secretName;
    }

    public String getSecretName()
    {
        return secretName;
    }
    public void setSecretCode(String secretCode)
    {
        this.secretCode = secretCode;
    }

    public String getSecretCode()
    {
        return secretCode;
    }
    public void setType(String type)
    {
        this.type = type;
    }

    public String getType()
    {
        return type;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }
    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("secretId", getSecretId())
                .append("secretName", getSecretName())
                .append("secretCode", getSecretCode())
                .append("type", getType())
                .append("status", getStatus())
                .append("remark", getRemark())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
